package com.ddyx.common.framework.exception;

import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 * class: JsonResult.java
 * author: agula
 * since: 2019-07-16  11:52
 */
@Data
public class JsonResult implements Serializable {

    private static final long serialVersionUID = 1L;
    public static final int SUCCESS = 1;
    public static final int ERROR = 0;

    /**
     * 是错误时候的错误消息
     */
    private String errmsg;
    /**
     * 是错误时候的错误码
     */
    private int errcode;


    public JsonResult(int errcode, String errMsg) {
        this.errcode = errcode;
        this.errmsg = errMsg;
    }

}
